package com.yy.param;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author lyy
 * @date 2021/12/09
 */
@Data
public class ClassRoomParam {
    @NotNull(message = "roomId 不能为空", groups = Update.class)
    private Integer roomId;
    @NotNull(message = "roomName 不能为空", groups = {Save.class, Update.class})
    private String roomName;
    @NotNull(message = "position 不能为空", groups = {Save.class, Update.class})
    private String position;
    private Integer capacity;

    public interface Save{}
    public interface Update{}
}
